<?php

namespace App\Http\Routes;

use Illuminate\Contracts\Routing\Registrar;
class ColourBackRoutes
{
    public function map(Registrar $router)
    {
        $router->group(['middleware' =>[ 'web','auth','permissions.check'], 'namespace'=>'Backstage', 'prefix' =>'backstage/colour/'], function ($router) {
            $router->post('add-colour', [ 'uses' => 'ColourController@postAddColour'])->name('post.colour.colour-list.add-colour');
            $router->post('update-colour', [ 'uses' => 'ColourController@postUpdateColour'])->name('post.colour.colour-list.update-colour');
            $router->post('reload-color-code', [ 'uses' => 'ColourController@postReloadColorCode'])->name('post.colour.colour-list.reload-color-code');
            $router->post('delete-colour', [ 'uses' => 'ColourController@postDeleteColour'])->name('post.colour.colour-list.delete-colour');
            $router->get('update-colour', [ 'uses' => 'ColourController@getUpdateColour'])->name('get.colour.colour-list.update-colour');
            $router->get('add-colour', [ 'uses' => 'ColourController@getAddColour'])->name('get.colour.colour-list.add-colour');
            $router->get('colour-list', [ 'uses' => 'ColourController@getColourList'])->name('get.colour.colour-list');
        });
   }
}